package Phase1;

/**
 * Created with IntelliJ IDEA.
 * User: Alvin
 * Date: 12/8/12
 * Time: 10:41 PM
 * To change this template use File | Settings | File Templates.
 */
public class MatchObject {
    String fileName;
    String match;
    int line;
    int start_index;
    int end_index;

    public MatchObject(String file, String matchIn, int lineIn, int start_indexIn, int end_indexIn) {
        fileName = file;
        line = lineIn;
        start_index = start_indexIn;
        end_index = end_indexIn;
        match = matchIn;
    }
    
    public String getMatch()
    {
    	return match;
    }
    
    public String toString()
    {
    	return fileName + " " + match + " " + line + " " + start_index + " " + end_index;
    }
}
